import axios from "axios";
 export let getlist=()=>{
     return async (dispatch)=>{
       let res = await axios.get("/list")
        dispatch({
            type:"getlist",
            payload:res.data
        })

     }
 }
 export let changepie = (arr)=>{
      return {
          type:"changepie",
          payload:arr
      }
 }